﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Pointandclick
{
    static class Inputs
    {
        static MouseState mouse = new MouseState();
        static MouseState oldMouse = new MouseState();
        static KeyboardState keyboard = new KeyboardState();
        static KeyboardState oldKeyboard = new KeyboardState();

        public static MouseState Mouse { get { return mouse; } }
        public static MouseState OldMouse { get { return oldMouse; } }
        public static KeyboardState Keyboard { get { return keyboard; } }
        public static KeyboardState OldKeyboard { get { return oldKeyboard; } }

        public static void Update()
        {
            oldMouse = mouse;
            oldKeyboard = keyboard;
            keyboard = Microsoft.Xna.Framework.Input.Keyboard.GetState();
            mouse = Microsoft.Xna.Framework.Input.Mouse.GetState();
        }

    }
}
